package com.designpatterns.interceptingfilterpattern;

import com.designpatterns.interceptingfilterpattern.impl.AuthenticationFilter;
import com.designpatterns.interceptingfilterpattern.impl.DebugFilter;

public class InterceptingFilterDemo
{
	public static void main(String[] args)
	{
		FilterManager filterManager = new FilterManager(new Target());
		filterManager.setFilter(new AuthenticationFilter());
		filterManager.setFilter(new DebugFilter());

		Client client = new Client();
		client.setFilterManager(filterManager);
		client.sendRequest("HOME");
	}
}
